package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.BpmnInfo;
import cn.wolfcode.car.business.query.BpmnInfoQueryObject;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

/**
 * 流程定义接口
 */
public interface IBpmnInfoService {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<BpmnInfo> query(BpmnInfoQueryObject qo);


    /**
     * 查单个
     * @param id
     * @return
     */
    BpmnInfo get(Long id);


    /**
     * 保存
     * @param bpmnInfo
     */
    void save(BpmnInfo bpmnInfo);

  


    /**
     *  批量删除
     * @param ids
     */
    void deleteBatch(Long ids);

    /**
     * 查询全部
     * @return
     */
    List<BpmnInfo> list();


    void update(BpmnInfo bpmnInfo);


    String upload(String bpmnPath,String bpmnType,String info);

    InputStream getResoucceByType(String deploymentId, String type);

    BpmnInfo queryByType(String car_package);
}
